package net.hctek.identity.action;

import java.util.ArrayList;
import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;

import net.hctek.identity.bean.Files;
import net.hctek.identity.service.IdentityServiceI;
/** 
* @author Ken 384755534@qq.com: 
* @version 创建时间：2017年2月21日 上午9:45:53 
* 类说明 :文件目录
*/ 


public class PageDownloadAction extends ActionSupport{
	
	private static final long serialVersionUID = 1L;
	@Autowired
	private IdentityServiceI identityService;
	private String LibraryName;
	private List<Files> pageListx = new ArrayList<>();
	
	@Override
	public String execute(){
		try {
			System.out.println("LibraryName:"+LibraryName);
			if(LibraryName != null){
				pageListx = identityService.selectFilePath(LibraryName);
				System.out.println("pageListx:"+pageListx);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}


	public IdentityServiceI getIdentityService() {
		return identityService;
	}


	public void setIdentityService(IdentityServiceI identityService) {
		this.identityService = identityService;
	}


	public List<Files> getPageListx() {
		return pageListx;
	}


	public void setPageListx(List<Files> pageListx) {
		this.pageListx = pageListx;
	}


	public String getLibraryName() {
		return LibraryName;
	}


	public void setLibraryName(String libraryName) {
		LibraryName = libraryName;
	}

	

}
